Schultz’s PowerBuilder Notes

Datawindow Button


Disabling a button on a datawindow

Datawindow buttons do not have a Disabled property. So showing them as “disabled” is not clear cut. Here is one way

In the datawindow painter, create a static text control of the same size as the button

  • Set the border to outline
  • Set its text to ”…”
  • Text should be bold and colored dark gray
  • Move it directly underneath the button

Now hide the button in script to disable it

dw_ff.Object.b_seeded.Visible = ab_switch

May 22, 2008 - Posted by | Datawindow PowerScript | , , , ,

No comments yet.

Leave a comment